import unittest

# loader
# param1: 加载模块的路径
# param2: 加模块的规则
discover = unittest.defaultTestLoader.discover('test_cases',pattern='*demo*')

# suite

# runner
runner = unittest.TextTestRunner(verbosity=2)
runner.run(discover)